package com.wrk._1_语法._03_分支;

import java.util.Scanner;

public class _013_判断是否为闰年 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入年份:");
        //输入年份
        int year = scanner.nextInt();
        //判断
        String leapYear = (year%4==0 && year%100!=0) || year%400==0?"是闰年":"不是闰年";
        System.out.println(leapYear);

        scanner.close();
    }
}
